package com.hllxd.hism.passport.base.model;


/**
 * author: xiyong.lxy
 * date: 2020-8-6 16:10
 */
public class PlatUserHolder {

    private static ThreadLocal<PlatUser> currentUser = new ThreadLocal<>();

    public PlatUserHolder() {
    }

    public static ThreadLocal<PlatUser> getCurrentUser() {
        return currentUser;
    }

    public static void clearCurrentUser() {
        currentUser.remove();
    }

    public static void setCurrentUser(ThreadLocal<PlatUser> currentUser) {
        currentUser = currentUser;
    }
}
